package org.example.web.controller.system;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 用户信息
 * 
 * @author cenxu
 */
@Controller
@RequestMapping("/system/user")
public class SysUserController
{

    private static final Logger log = LoggerFactory.getLogger(SysUserController.class);

    private String prefix = "system/user";

//    @RequiresPermissions("system:user:view")
    @GetMapping()
    public String user()
    {
        return prefix + "/user";
    }

//    @Log(title = "用户管理", businessType = BusinessType.INSERT)
//    @RequiresPermissions("system:user:list")
    @PostMapping("/list")
    @ResponseBody
    public void list()
    {
        System.out.println("已进入~~");
    }

}